package com.ilvyou.data.lcs;

import java.sql.Timestamp;

/**
 * Created by Administrator on 2017/2/13.
 */
public class SetupIntervalEntity {
    private Short versionid;
    private Integer ruleid;
    private String rulecode;
    private Integer levelid;
    private String levelcode;
    private Integer id;
    private Integer stepid;
    private String stepcode;
    private String stepattr;
    private String interval;
    private Timestamp createdon;
    private String createdby;
    private String createdname;
    private String createdip;

    public Short getVersionid() {
        return versionid;
    }

    public void setVersionid(Short versionid) {
        this.versionid = versionid;
    }

    public Integer getRuleid() {
        return ruleid;
    }

    public void setRuleid(Integer ruleid) {
        this.ruleid = ruleid;
    }

    public String getRulecode() {
        return rulecode;
    }

    public void setRulecode(String rulecode) {
        this.rulecode = rulecode;
    }

    public Integer getLevelid() {
        return levelid;
    }

    public void setLevelid(Integer levelid) {
        this.levelid = levelid;
    }

    public String getLevelcode() {
        return levelcode;
    }

    public void setLevelcode(String levelcode) {
        this.levelcode = levelcode;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getStepid() {
        return stepid;
    }

    public void setStepid(Integer stepid) {
        this.stepid = stepid;
    }

    public String getStepcode() {
        return stepcode;
    }

    public void setStepcode(String stepcode) {
        this.stepcode = stepcode;
    }

    public String getStepattr() {
        return stepattr;
    }

    public void setStepattr(String stepattr) {
        this.stepattr = stepattr;
    }

    public String getInterval() {
        return interval;
    }

    public void setInterval(String interval) {
        this.interval = interval;
    }

    public Timestamp getCreatedon() {
        return createdon;
    }

    public void setCreatedon(Timestamp createdon) {
        this.createdon = createdon;
    }

    public String getCreatedby() {
        return createdby;
    }

    public void setCreatedby(String createdby) {
        this.createdby = createdby;
    }

    public String getCreatedname() {
        return createdname;
    }

    public void setCreatedname(String createdname) {
        this.createdname = createdname;
    }

    public String getCreatedip() {
        return createdip;
    }

    public void setCreatedip(String createdip) {
        this.createdip = createdip;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        SetupIntervalEntity that = (SetupIntervalEntity) o;

        if (versionid != null ? !versionid.equals(that.versionid) : that.versionid != null) return false;
        if (ruleid != null ? !ruleid.equals(that.ruleid) : that.ruleid != null) return false;
        if (rulecode != null ? !rulecode.equals(that.rulecode) : that.rulecode != null) return false;
        if (levelid != null ? !levelid.equals(that.levelid) : that.levelid != null) return false;
        if (levelcode != null ? !levelcode.equals(that.levelcode) : that.levelcode != null) return false;
        if (id != null ? !id.equals(that.id) : that.id != null) return false;
        if (stepid != null ? !stepid.equals(that.stepid) : that.stepid != null) return false;
        if (stepcode != null ? !stepcode.equals(that.stepcode) : that.stepcode != null) return false;
        if (stepattr != null ? !stepattr.equals(that.stepattr) : that.stepattr != null) return false;
        if (interval != null ? !interval.equals(that.interval) : that.interval != null) return false;
        if (createdon != null ? !createdon.equals(that.createdon) : that.createdon != null) return false;
        if (createdby != null ? !createdby.equals(that.createdby) : that.createdby != null) return false;
        if (createdname != null ? !createdname.equals(that.createdname) : that.createdname != null) return false;
        if (createdip != null ? !createdip.equals(that.createdip) : that.createdip != null) return false;

        return true;
    }

    @Override
    public int hashCode() {
        int result = versionid != null ? versionid.hashCode() : 0;
        result = 31 * result + (ruleid != null ? ruleid.hashCode() : 0);
        result = 31 * result + (rulecode != null ? rulecode.hashCode() : 0);
        result = 31 * result + (levelid != null ? levelid.hashCode() : 0);
        result = 31 * result + (levelcode != null ? levelcode.hashCode() : 0);
        result = 31 * result + (id != null ? id.hashCode() : 0);
        result = 31 * result + (stepid != null ? stepid.hashCode() : 0);
        result = 31 * result + (stepcode != null ? stepcode.hashCode() : 0);
        result = 31 * result + (stepattr != null ? stepattr.hashCode() : 0);
        result = 31 * result + (interval != null ? interval.hashCode() : 0);
        result = 31 * result + (createdon != null ? createdon.hashCode() : 0);
        result = 31 * result + (createdby != null ? createdby.hashCode() : 0);
        result = 31 * result + (createdname != null ? createdname.hashCode() : 0);
        result = 31 * result + (createdip != null ? createdip.hashCode() : 0);
        return result;
    }
}
